{include file="header"}
<div class="x-body layui-form">
    <blockquote class="layui-elem-quote">全部评论 <span class="x-right" style="line-height:40px">共有数据：{:fun_st(ps('comment'),array())} 条</span>
    </blockquote>
    <div style="overflow: auto;">
        <table class="layui-table" style="min-width: 1000px;">
            <colgroup>
                <col width="200">
                    <col>
            </colgroup>
            <thead>
                <tr>
                    <th>文章</th>
                    <th>用户</th>
                    <th>内容</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>{volist name=":fun_s(ps('comment'),array(),'id desc',10,0)" id="vo"}
                <!--内容-->
                <tr>
                    <td> 
                    {if $vo.m=='html'}
                    <a href="{:url('index/index/html',array('id'=>$vo.fid))}" target="_blank">{:fun_sc_p($vo.m, array('id'=>$vo.fid), 'title')}</a>
                    {else/}
                    <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.fid))}" target="_blank">{:fun_sc_p($vo.m, array('id'=>$vo.fid), 'title')}</a>
                    {/if}
                    </td>
                    <td> <a href="{:url('index/index/uid',array('id'=>$vo.uid))}" target="_blank">{:fun_u($vo.uid, 'username')}</a>
                    </td>
                    <td style="max-width: 300px;">{:cut_c(zw($vo.content),50)}</td>
                    <td>{$vo.time|times}</td>
                    <td class="td-manage">
                        <input type="checkbox" lay-skin="switch" url="{:url("admin/api/uindex")}?id={$vo.id}&model=comment&or=open" lay-submit lay-filter="index" lay-text="显示|显示" {if condition="$vo['open'] eq 1" }checked{/if}> <a class="layui-btn layui-btn-sm layui-btn-danger del_t" url="{:url('admin/api/catedelete')}?model=comment&id={$vo.id}" name="确定要删除这条记录吗？"><i class="layui-icon"></i>删除</a>
                    </td>
                </tr>{/volist}</tbody>
        </table>
    </div>
    <div class="page">{:fun_s('comment',array(),'id desc',10,0)->render()}</div>
</div>{include file="footer"}